package com.njupt.controller;

import com.njupt.common.pojo.TaotaoResult;
import com.njupt.service.ItemParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 13:13 2018/5/28
 * @Modified By:
 **/
@Controller
public class ItemParamController {

    @Autowired
    private ItemParamService itemParamService;

    @ResponseBody
    @RequestMapping("/rest/item/param/item/query/{id}")
    public TaotaoResult getItemParam(@PathVariable("id") Long id){
        TaotaoResult result = itemParamService.getItemParam(id);
        return result;
    }
}
